<!DOCTYPE html>
<html>
<head>
<title>{{config('app.name')}} | @yield('title') </title>
<link href="{{asset('/shop/css/bootstrap.css')}}" rel="stylesheet" type="text/css" media="all" />
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="{{asset('/shop/js/jquery.min.js')}}"></script>
<!-- Custom Theme files -->
<!--theme-style-->
<link href="{{asset('/shop/css/style.css')}}" rel="stylesheet" type="text/css" media="all" />	
<!--//theme-style-->
<meta name="csrf-token" content="{{ csrf_token() }}">
<meta name="viewport" content="width=device-width, initial-scale=1">

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="New Store Responsive web template, Bootstrap Web Templates, Flat Web Templates, Andriod Compatible web template, 
Smartphone Compatible web template, free webdesigns for Nokia, Samsung, LG, SonyErricsson, Motorola web design" />
<script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>
<!--fonts-->
<!-- <link href='http://fonts.useso.com/css?family=Lato:100,300,400,700,900' rel='stylesheet' type='text/css'>
<link href='http://fonts.useso.com/css?family=Roboto:400,100,300,500,700,900' rel='stylesheet' type='text/css'><!//fonts-->
<!-- start menu -->
<link href="{{asset('/shop/css/memenu.css')}}" rel="stylesheet" type="text/css" media="all" />
<script type="text/javascript" src="{{asset('/shop/js/memenu.js')}}"></script>
<script>$(document).ready(function(){$(".memenu").memenu();});</script>
<script src="{{asset('/shop/js/simpleCart.min.js')}}"> </script>
</head>
<body>
<!--header-->
<div class="header">
	<div class="header-top">
		<div class="container">
			<div class="search">
					<form action="{{url('/home/good/index')}}" method="get">
					{{csrf_field()}}
						<input class="block" type="text" value="Search " 	name="keywords" onFocus="this.value = '';" onBlur="if (this.value == '') {this.value = 'Search';}" placeholder="搜索商品">
						<input type="submit" value="Go">
					</form>
			</div>
		
			<div class="header-left">		
					<ul>
					@if(session('info'))
                     <span style="color: purple" class="edit">{{session('info')}}</span>
					@endif
						<li ><span>
						@if(session('homeM'))
						欢迎你：{{session('homeM')->uname}}
						<span><a href="{{url('/home/index/logout')}}">登出</a></span>
						@else
						<span>你好！</span>
						<a href="{{url('/home/index/logon')}}">
                        请登录
						</a>
						@endif
						</span></li>
						<li><a  href="{{url('/home/index/register')}}">注册</a></li>
						<li><a  href="{{url('/home/index/userInfo')}}">个人中心</a></li>

					</ul>
					<div class="cart box_1">
						<a href="{{url('/home/cart/index')}}">
						<h3> <div class="total">
							</div>
							<img src="{{asset('/shop/images/cart.png')}}" alt=""/></h3>
						</a>
						

					</div>
					<div class="clearfix"> </div>
			</div>
				<div class="clearfix"> </div>
		</div>
		</div>
		<div class="container">
			<div class="head-top">
				<div class="logo">
					<a href="{{url('/')}}"><img src="{{asset('/shop/images/logo.png')}}" alt=""></a>	
				</div>
		  <div class=" h_menu4">
				<ul class="memenu skyblue">
					  <li class="active grid"><a class="color8" href="{{url('/')}}">首页</a></li>	
				      <li><a class="color1" href="#">服装</a>
				      	<div class="mepanel">
				      	@foreach($pData as $row)
						<div class="row">
						
							<div class="col1">
								<div class="h_nav">
									<ul style="display: block;text-align: center;">
									<li><a href="{{url('/home/good/index')}}/{{$row->tid}}">{{$row->tname}}</a></li>
									</ul>
										
								</div>							
							</div>
						@foreach($list[$row->tid] as $v)
									<ul style="display: block;text-align: center;">
									<li><a href="{{url('/home/good/index')}}/{{$v->tid}}">{{$v->tname}}</a></li>
									</ul>	
									@endforeach
									<hr>
						  </div>
						  @endforeach	
						</div>
					</li>
			
				<li><a class="color4" href="{{url('/home/message/index')}}">用户互动</a></li>				
				<li><a class="color6" href="{{url('/admin/login')}}">登录后台</a></li>
			  </ul> 
			</div>
				
				<div class="clearfix"> </div>
		</div>
		</div>

	</div>
      @yield('content')
<div class="footer">
				<div class="container">
			<div class="footer-top-at">
			
				<div class="col-md-4 amet-sed">
				<h4>MORE INFO</h4>
				<ul class="nav-bottom">
						<li><a href="#">How to order</a></li>
						<li><a href="#">FAQ</a></li>
						<li><a href="contact.html">Location</a></li>
						<li><a href="#">Shipping</a></li>
						<li><a href="#">Membership</a></li>	
					</ul>	
				</div>
				<div class="col-md-4 amet-sed ">
				<h4>CONTACT US</h4>
				
					<p>
Contrary to popular belief</p>
					<p>The standard chunk</p>
					<p>office:  +12 34 995 0792</p>
					<ul class="social">
						<li><a href="#"><i> </i></a></li>						
						<li><a href="#"><i class="twitter"> </i></a></li>
						<li><a href="#"><i class="rss"> </i></a></li>
						<li><a href="#"><i class="gmail"> </i></a></li>
						
					</ul>
				</div>
				<div class="col-md-4 amet-sed">
					<h4>Newsletter</h4>
					<p>Sign Up to get all news update
and promo</p>
					<form>
						<input type="text" value="" onFocus="this.value='';" onBlur="if (this.value == '') {this.value ='';}">
						<input type="submit" value="Sign up">
					</form>
				</div>
				<div class="clearfix"> </div>
			</div>
		</div>
		
		</div>
</body>
<script>
	 $('.edit').fadeOut(2000);
</script>
</html>
	